//                 ,  , 
//                / \/ \,'| _ 
//               ,'    '  ,' |,| 
//              ,'           ' |,'|
//             ,'                 ;'| _ 
//            ,'                    '' | 
//           ,'                        ;-, 
//          (___                        / 
//        ,'    `.  ___               ,' 
//       :       ,`'   `-.           / 
//       |-._ o /         \         / 
//      (    `-(           )       / 				To compile the files type in the terminal:
//     ,'`.     \      o  /      ,' 				g++ file_name.C -o executable_name
//    /    `     `.     ,'      / 
//   (             `"""'       / 
//    `._                     / 
//       `--.______        '"`. 
//          \__,__,`---._   '`; 
//               ))`-^--')`,-' 
//             ,',_____,'  | 
//             \_          `). 
//               `.      _,'  ` 
//               /`-._,-'      \ 
//
//
//*********************************************************************************************************************************



#include <iostream> 
using namespace std;

int addition (int& a, int& b) 			//function declaration
{ 
	a = 2;	
	b = 2;	
	int c;								//function definition
	
	cout << "In the function x is changed to " << a << endl; 
	cout << "In the function y is changed to " << b << endl; 
	
	c=a+b; 								//function definition

	cout << "The result inside the function is " << c << endl;
 
	return (c); 						        //function definition
}

int main () 
{ 
	int answer;
	int x,y;
	
	x=10;
	y=3;
	
	cout << "Before entering to the function x is " << x << endl; 
	cout << "Before entering to the function y is " << y << endl; 
	cout << "Before entering to the function x + y is " << x + y << endl; 
	 
	answer = addition (x,y); 			//call to function addition
	
	cout << "The result in main after passing by reference is " << answer << endl; 
	cout << "The return value of the function is " << answer << endl;

	return 0; 
}
